package com.tsy.server.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tsy.server.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 权限实体类
 */
@Data
@TableName("permission")
@ApiModel(value = "权限实体", description = "权限数据库实体类")
public class Permission extends BaseEntity {

    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限名称", example = "用户管理")
    private String permissionName;

    /**
     * 权限标识
     */
    @ApiModelProperty(value = "权限标识", example = "system:user:list")
    private String permissionKey;

    /**
     * 权限类型（menu-菜单，button-按钮，api-接口）
     */
    @ApiModelProperty(value = "权限类型", example = "menu", notes = "menu-菜单，button-按钮")
    private String permissionType;

    /**
     * 父权限ID
     */
    @ApiModelProperty(value = "父权限ID", example = "0")
    private Long parentId;

    /**
     * 状态：0-禁用，1-启用
     */
    @ApiModelProperty(value = "状态：0-禁用，1-启用", example = "1")
    private Integer status;
}